package cn.whit.blog.dao;

import java.sql.SQLException;
import java.util.List;

import cn.whit.blog.domain.Statistical;
import cn.whit.blog.domain.StatisticalType;

public interface StatisticalDao {
	
	//根据用户id和博客id和点赞类型，查询是否点赞过
	List<Statistical>  findAllByUserIdAndTblogIdAndType(String userid,String blogid,StatisticalType statisticalType) throws SQLException;

	//根据博客id和点赞类型，查询 
	List<Statistical>  findAllByTblogIdAndType(String blogid,StatisticalType statisticalType) throws SQLException;

		
	void add(String userid, String username, String id, StatisticalType statisticalType) throws SQLException;

	void deleteByVoteId(String s) throws SQLException;
	
	
}
